package com.nageoffer.shortlink.remote;

import com.nageoffer.shortlink.common.convention.result.Result;
import com.nageoffer.shortlink.common.entity.admin.Group;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("short-link-admin")
public interface GroupClient {
    @GetMapping("/api/short-link/admin/group/simple")
    Result<List<Group>> getSimpleGroups();
}
